import com.woniuxy.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestChineseJap {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("appliacationContext.xml");
        Person chinese = applicationContext.getBean("Chinese", Person.class);
        Person japanese = applicationContext.getBean("japanese", Person.class);
        System.out.println(chinese);
        System.out.println(japanese);

    }
}
